package mx.com.matersys.vacs.domain;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity(versionField = "", table = "estatus")
public class Estatus {
	
	@Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "idestatus")
    private Integer idestatus;
	
	@OneToMany(mappedBy = "idestatus")
    private Set<Especialista> especialistas;
    
    @OneToMany(mappedBy = "idestatus")
    private Set<Mensajes> mensajeses;
    
    @OneToMany(mappedBy = "idestatus")
    private Set<Paciente> pacientes;
    
    @OneToMany(mappedBy = "idestatus")
    private Set<Planservicio> planservicios;
    
    @OneToMany(mappedBy = "idestatus")
    private Set<UserVacs> userVacss;
    
    @Column(name = "descripcion", length = 45)
    private String descripcion;
    
    @Column(name = "tipo", length = 15, nullable = false)
    private String tipo;
}
